package org.example.controller;

import jakarta.annotation.Resource;
import org.example.util.JsonResult;
import org.example.util.ResultTool;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther:Liu
 * @Testname:FirstController
 * @Date:2025/9/16 21:32
 */
@RestController
@RequestMapping("/first")
public class FirstController {

    @GetMapping("/a")
    public JsonResult a(){
        return ResultTool.success( "This is a first^a controller");
    }

    @GetMapping("/b")
    public JsonResult b() {
        return ResultTool.success("This is FirstController`b method!");
    }

    @GetMapping("/c")
    public JsonResult c() {
        return ResultTool.success("This is FirstController`c method!");
    }

    @GetMapping("/d")
    public JsonResult d() {
        return ResultTool.success("This is FirstController`d method!");
    }
}
